<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style type="text/css">
.error{
	border:1px solid #dd0000;
}
</style>
<script type="text/javascript" src="prototype.js"></script>
<script type="text/javascript" src="base.js"></script>
<script type="text/javascript">
Event.observe(window,'load',function(){
	new ValidateForm('form1',['isNotEmpty','isEmail']);
});
</script>
</head>

<body>
<form id="form1">
	<input type="text" class="isNotEmpty" msg='can not empty' tabindex="2" />
	<input type="text" class="isEmail isNotEmpty" msg='can not empty' tabindex="4" />
	<input type="text" class="isNotEmpty" msg='can not empty' tabindex="6"  disabled="disabled" />
	<input type="submit" value="submit" />
</form>
</body>
</html>
